include_directories (${CMAKE_CURRENT_BINARY_DIR})

add_executable (date_lut_init date_lut_init.cpp)
add_executable (date_lut2 date_lut2.cpp)
add_executable (date_lut3 date_lut3.cpp)
add_executable (date_lut4 date_lut4.cpp)
add_executable (multi_version multi_version.cpp)
add_executable (json_test json_test.cpp)
add_executable (strong_typedef strong_typedef.cpp)


set(PLATFORM_LIBS ${CMAKE_DL_LIBS})

target_link_libraries (date_lut_init common ${ICU_LIBS} ${PLATFORM_LIBS})
target_link_libraries (date_lut2 common ${ICU_LIBS} ${PLATFORM_LIBS})
target_link_libraries (date_lut3 common ${ICU_LIBS} ${PLATFORM_LIBS})
target_link_libraries (date_lut4 common ${ICU_LIBS} ${PLATFORM_LIBS})
target_link_libraries (multi_version dbms ${Boost_SYSTEM_LIBRARY} ${RT_LIBRARIES})
target_link_libraries (json_test dbms ${Boost_SYSTEM_LIBRARY} ${RT_LIBRARIES})
target_link_libraries (strong_typedef common)

add_check (json_test)
add_check (strong_typedef)
